package com.item.redis.type2.entity;

/**
 * @author zhang-rongyao
 * @Package com.item.redis.type2
 * @date 2021/10/15
 * @Version v1.0.0
 */
public class RedisLockBean {
    private String key;
    private int timeInSecond;
    private String codeName;
    private String msgName;
    private String code;
    private String msg;
    private boolean isAtController;
    private boolean isAtService;
    private boolean isAtParameter;
    private String returnType;

    public String getKey() {
        return this.key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public int getTimeInSecond() {
        return this.timeInSecond;
    }

    public void setTimeInSecond(int timeInSecond) {
        this.timeInSecond = timeInSecond;
    }

    public String getCodeName() {
        return this.codeName;
    }

    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }

    public String getMsgName() {
        return this.msgName;
    }

    public void setMsgName(String msgName) {
        this.msgName = msgName;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isAtController() {
        return this.isAtController;
    }

    public void setAtController(boolean atController) {
        this.isAtController = atController;
    }

    public boolean isAtService() {
        return this.isAtService;
    }

    public void setAtService(boolean atService) {
        this.isAtService = atService;
    }

    public boolean isAtParameter() {
        return this.isAtParameter;
    }

    public void setAtParameter(boolean atParameter) {
        this.isAtParameter = atParameter;
    }

    public String getReturnType() {
        return this.returnType;
    }

    public void setReturnType(String returnType) {
        this.returnType = returnType;
    }

    @Override
    public String toString() {
        return "RedisLockBean{" +
                "key='" + this.key + '\'' +
                ", timeInSecond=" + this.timeInSecond +
                ", codeName='" + this.codeName + '\'' +
                ", msgName='" + this.msgName + '\'' +
                ", code='" + this.code + '\'' +
                ", msg='" + this.msg + '\'' +
                ", isAtController=" + this.isAtController +
                ", isAtService=" + this.isAtService +
                ", isAtParameter=" + this.isAtParameter +
                ", returnType='" + this.returnType + '\'' +
                '}';
    }
}
